package com.dongnam.quanly.web.nghiepvu.muabanhang.baogia;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;

import org.primefaces.model.StreamedContent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.dongnam.quanly.web.UserBean;

@ManagedBean(name = "BaoGiaBean")
@SessionScoped
public class BaoGiaBean implements Serializable {

	private static final long serialVersionUID = 1L;
	private static final Logger logger = LoggerFactory.getLogger(BaoGiaBean.class);

	@ManagedProperty(value = "#{UserBean}")
	private UserBean userBean;
	private BaoGiaModel baoGiaModel;
	private StreamedContent file;

	public void downloadFileCSV() {
		// Todo
	}

	public UserBean getUserBean() {
		return userBean;
	}

	public void setUserBean(UserBean userBean) {
		this.userBean = userBean;
	}

	public BaoGiaModel getBaoGiaModel() {
		return baoGiaModel;
	}

	public void setBaoGiaModel(BaoGiaModel baoGiaModel) {
		this.baoGiaModel = baoGiaModel;
	}

	public StreamedContent getFile() {
		return file;
	}

	public void setFile(StreamedContent file) {
		this.file = file;
	}

}
